package com.yangchoi.lib_base.router

enum class Router {
    MAIN,
    //主屏幕
    HOME,
    PROJECT,
    NAVIGATION,
    MINE,
    //home
    SEARCH,
    //mine
    LOGIN,
    REGISTER,
    MY_COLLECTION
}

fun getRootAddressByRouter(router: Router):String{
    return when(router){
        Router.MAIN -> "main/main"
        //home
        Router.HOME -> "home/home"
        Router.SEARCH -> "home/search"
        //project
        Router.PROJECT -> "project/project"
        //navigation
        Router.NAVIGATION -> "navigation/navigation"
        //mine
        Router.MINE -> "my/mine"
        Router.LOGIN -> "my/login"
        Router.REGISTER -> "my/register"
        Router.MY_COLLECTION -> "my/collection"
        else -> "error"
    }
}